const Router = require('koa-router')
const { Success } = require('../../core/common')
const auth = require('../../middleware/auth')
const router = new Router({
  prefix: '/v1/message'
})

router.get('/getMessageList', auth, async (ctx) => {
  Success(ctx, ['a', 'b', 'c', 'd', 'e', 'f', 'g'])
})
router.post('/test', auth, async (ctx) => {
  console.log('auth access ctx.auth', ctx.auth)
  Success(ctx, ['a', 'b', 'c', 'd', 'e', 'f', 'g'])
})

module.exports = router


